package com.chinacoal.hr.levelapi.client.fallback;

import com.chinacoal.hr.levelapi.client.response.Result;
import com.chinacoal.hr.levelapi.client.response.ResultCode;
import com.chinacoal.hr.levelapi.client.response.ResultGenerator;
import com.chinacoal.hr.levelapi.controller.FileServiceClient;
import org.springframework.stereotype.Component;

/**
 * @author: YunTao.Li
 * @create: 2020-01-08 15:18
 * @description:
 **/
@Component
public class FileServiceClientFallback implements FileServiceClient {
    @Override
    public Result testFile() {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }
}
